<?php
/**
 * 
 * @author SangNV1001
 *
 */
class HomeController extends Zendx_Controller_Action{
	/**
	 * (non-PHPdoc)
	 * @see Zendx_Controller_Action::init()
	 */
	public function init(){
		$option = array(
				"layout" => "_layout",
				"layoutPath" => APPLICATION_PATH."/modules/default/layouts/scripts/",
		);
		Zend_Layout::startMvc($option);
	}
	/**
	 * 
	 */
	public function indexAction(){
		$this->view->baseUrl = $this->getBaseUrl();
		$this->view->headTitle("myTube - Home");
		$this->view->headLink()->appendStylesheet($this->getBaseUrl() ."/public/css/home-index.css");
		// load css for nivo slider image
		$this->view->headLink()->appendStylesheet($this->getBaseUrl() ."/public/css/nivo/nivo-slider.css");
		$this->view->headScript()->appendFile($this->getBaseUrl() . "/public/js/home-index.js","text/javascript");
		// load older version of jQuery for only nivo slider
		$this->view->headScript()->appendFile($this->getBaseUrl() . "/public/js/libs/jquery-1.7.1.js","text/javascript");
	}
}